package com.qf.j2112.service;

import com.qf.j2112.po.SysGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ProjectName: YiZhanXiYi
 * @Package: com.qf.j2112.service
 * @ClassName: RemoteGoodsService
 * @Author: 宋晓博
 * @Description: description
 * @Date: 2022/4/14 19:21
 * @Version: 1.0
 */

@FeignClient(value = "goods-service")
public interface RemoteGoodsService {

    /*获取商品详细信息,给其他服务调用*/
    @RequestMapping(value ="/goods/{goodsId}",method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE, consumes = "application/json;charset=UTF-8")
    public SysGoods getGoodsInfo(@PathVariable("goodsId") Integer goodsId);

}
